using System.Text;
using System;
using System.Collections.Generic;
using AmazeUI.db;
namespace AmazeUI.Bll.GetModel
{
    public class OpenUserJson
    {
        public int Id { get; set; }
        public string nickname { get; set; }
        public string sex { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string country { get; set; }
        public string headimgurl { get; set; }
        public string privilege { get; set; }
        public string unionid { get; set; }
        public string openid { get; set; }
        public int XtUserId { get; set; }
        public OpenUserJson() { }
        public OpenUserJson(OpenUser model)
            : this()
        {
            SetModel(model);
        }

        public void SetModel(OpenUser model)
        {
            this.Id = model.Id;
            this.nickname = model.nickname;
            this.sex = model.sex;
            this.province = model.province;
            this.city = model.city;
            this.country = model.country;
            this.headimgurl = model.headimgurl;
            this.XtUserId = model.XtUserId;
            this.openid = model.openid;
        }


    }
}
